import { PORT1 } from "@/api/config/servicePort";
import http from "@/api";

export const listByParentId = params => {
  let data = http.get(PORT1 + `/areaGuizhou/listByParentId?parentId=` + params, null);
  return data;
};

export const listByPage = params => {
  let data = http.post(PORT1 + `/shopsBase/listByPage`, params);
  return data;
};
export const deleteData = params => {
  return http.delete(PORT1 + `/shopsBase/deleteData?id=` + params);
};

export const addData = params => {
  return http.post(PORT1 + `/shopsBase/addData`, params);
};

export const updateData = params => {
  return http.post(PORT1 + `/shopsBase/updateData`, params);
};

export const listShop = params => {
  return http.post(PORT1 + `/shopsBase/listShop`, params);
};

export const addBillFareData = params => {
  return http.post(PORT1 + `/billFare/addData`, params);
};
